<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<script src="../js/vue.js"></script>

<body>
    <div id="app">
        <h1 v-uc="msg"></h1>
    </div>
    <script src="./plugin.js"></script>
    <script>
        // 使用声明插件 内部调用install（）
        Vue.use(MyPlugin);
        Vue.myGlobalMethod();

        const vm = new Vue({
            el: "#app",
            data: {
                msg: 'tianqing'
            }
        })
        vm.$myMethod();
    </script>
</body>

</html>